package com.yicong.ants.bean.me;

import com.yicong.ants.bean.base.BaseBean;
import com.yicong.ants.bean.common.PageInfoBean;

import java.util.List;

/**
 * @author cchao
 * @version 2019-08-08.
 */
public class RecFriendResp extends BaseBean {
    public PageInfoBean pageInfo;
    public String count;
    public String count_active;
    private List<RecFriendBean> data;

    public RecFriendResp() {
    }

    public PageInfoBean getPageInfo() {
        return this.pageInfo;
    }

    public String getCount() {
        return this.count;
    }

    public String getCount_active() {
        return this.count_active;
    }

    public List<RecFriendBean> getData() {
        return this.data;
    }

    public void setPageInfo(PageInfoBean pageInfo) {
        this.pageInfo = pageInfo;
    }

    public void setCount(String count) {
        this.count = count;
    }

    public void setCount_active(String count_active) {
        this.count_active = count_active;
    }

    public void setData(List<RecFriendBean> data) {
        this.data = data;
    }

    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof RecFriendResp)) return false;
        final RecFriendResp other = (RecFriendResp) o;
        if (!other.canEqual((Object) this)) return false;
        if (!super.equals(o)) return false;
        final Object this$pageInfo = this.getPageInfo();
        final Object other$pageInfo = other.getPageInfo();
        if (this$pageInfo == null ? other$pageInfo != null : !this$pageInfo.equals(other$pageInfo))
            return false;
        final Object this$count = this.getCount();
        final Object other$count = other.getCount();
        if (this$count == null ? other$count != null : !this$count.equals(other$count))
            return false;
        final Object this$count_active = this.getCount_active();
        final Object other$count_active = other.getCount_active();
        if (this$count_active == null ? other$count_active != null : !this$count_active.equals(other$count_active))
            return false;
        final Object this$data = this.getData();
        final Object other$data = other.getData();
        if (this$data == null ? other$data != null : !this$data.equals(other$data)) return false;
        return true;
    }

    protected boolean canEqual(final Object other) {
        return other instanceof RecFriendResp;
    }

    public int hashCode() {
        final int PRIME = 59;
        int result = super.hashCode();
        final Object $pageInfo = this.getPageInfo();
        result = result * PRIME + ($pageInfo == null ? 43 : $pageInfo.hashCode());
        final Object $count = this.getCount();
        result = result * PRIME + ($count == null ? 43 : $count.hashCode());
        final Object $count_active = this.getCount_active();
        result = result * PRIME + ($count_active == null ? 43 : $count_active.hashCode());
        final Object $data = this.getData();
        result = result * PRIME + ($data == null ? 43 : $data.hashCode());
        return result;
    }

    public String toString() {
        return "RecFriendResp(pageInfo=" + this.getPageInfo() + ", count=" + this.getCount() + ", count_active=" + this.getCount_active() + ", data=" + this.getData() + ")";
    }

    public static class RecFriendBean {

        /**
         * addtime : 2019-07-10 12:55:09
         * status : 0
         * mobile : 13421499802
         * avatar : http://new.fxzgm.com/uploads/avatar.png
         * username : 134****9802
         */

        private String addtime;
        private int status;
        private String mobile;
        private String avatar;
        private String username;

        public RecFriendBean() {
        }

        public String getAddtime() {
            return this.addtime;
        }

        public int getStatus() {
            return this.status;
        }

        public String getMobile() {
            return this.mobile;
        }

        public String getAvatar() {
            return this.avatar;
        }

        public String getUsername() {
            return this.username;
        }

        public void setAddtime(String addtime) {
            this.addtime = addtime;
        }

        public void setStatus(int status) {
            this.status = status;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public void setAvatar(String avatar) {
            this.avatar = avatar;
        }

        public void setUsername(String username) {
            this.username = username;
        }

        public boolean equals(final Object o) {
            if (o == this) return true;
            if (!(o instanceof RecFriendBean)) return false;
            final RecFriendBean other = (RecFriendBean) o;
            if (!other.canEqual((Object) this)) return false;
            final Object this$addtime = this.getAddtime();
            final Object other$addtime = other.getAddtime();
            if (this$addtime == null ? other$addtime != null : !this$addtime.equals(other$addtime))
                return false;
            if (this.getStatus() != other.getStatus()) return false;
            final Object this$mobile = this.getMobile();
            final Object other$mobile = other.getMobile();
            if (this$mobile == null ? other$mobile != null : !this$mobile.equals(other$mobile))
                return false;
            final Object this$avatar = this.getAvatar();
            final Object other$avatar = other.getAvatar();
            if (this$avatar == null ? other$avatar != null : !this$avatar.equals(other$avatar))
                return false;
            final Object this$username = this.getUsername();
            final Object other$username = other.getUsername();
            if (this$username == null ? other$username != null : !this$username.equals(other$username))
                return false;
            return true;
        }

        protected boolean canEqual(final Object other) {
            return other instanceof RecFriendBean;
        }

        public int hashCode() {
            final int PRIME = 59;
            int result = 1;
            final Object $addtime = this.getAddtime();
            result = result * PRIME + ($addtime == null ? 43 : $addtime.hashCode());
            result = result * PRIME + this.getStatus();
            final Object $mobile = this.getMobile();
            result = result * PRIME + ($mobile == null ? 43 : $mobile.hashCode());
            final Object $avatar = this.getAvatar();
            result = result * PRIME + ($avatar == null ? 43 : $avatar.hashCode());
            final Object $username = this.getUsername();
            result = result * PRIME + ($username == null ? 43 : $username.hashCode());
            return result;
        }

        public String toString() {
            return "RecFriendResp.RecFriendBean(addtime=" + this.getAddtime() + ", status=" + this.getStatus() + ", mobile=" + this.getMobile() + ", avatar=" + this.getAvatar() + ", username=" + this.getUsername() + ")";
        }
    }
}
